/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ErrorKompilasi;

/**
 *
 * @author novaldebbyp
 */
public class Soal1 {
    public static void main(String[] args){
        byte b=11;
        short s=13;
        s=++s;
        byte resb=(byte) (b*s);
        short ress=(short) (b*s);
        int resi=b*s;
        long resl=b*s;
        float resf=b*s;
        double resd=b*s;
        char resc=(char) (b*s);
        // boolean resbo=b*++s;
        System.out.println(resb);
        System.out.println(ress);
        System.out.println(resi);
        System.out.println(resl);
        System.out.println(resf);
        System.out.println(resd);
        System.out.println(resc);
        /* answer : e, karena jika variabel result bertipe selain int, long, float atau double,
         * maka akan terjadi error karena ada kemungkinan untuk hilangnya data. */
        
    }
}
